package com.cdp.system.dto;

import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class UserFeedbackDTO {

    @NotBlank(message = "反馈内容不能为空")
    private String content;

    private String reply;
    private String startTime; // 查询开始时间
    private String endTime;   // 查询结束时间
    private String name;      // 文件名
    private Long userId;

    private Integer id;

    @Email(message = "邮箱格式不正确")
    private String email;

    @NotBlank(message = "称呼不能为空")
    private String contactName;

    private Integer sex;

    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phoneNumber;
}
